package com.ihelp.service;

import com.ihelp.pojo.Request;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ihelp.pojo.RequestDTO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author LiuZiMing
 * @since 2023-05-23
 */
public interface RequestService extends IService<Request> {
    List<RequestDTO> getAllRequest(int pageId);
    List<RequestDTO> getAllRequestByDynamicConditions(
            Integer pageId,
            Integer hospitalId,
            Integer hospitalDepartmentId,
            String visitTime,
            Integer visitorId,
            Double price,
            Integer serviceTypeId,
            Integer areaId,
            Integer duration);

    Integer deleteRequestById(Integer id);

    Integer createRequest(
            Integer hospitalId,
            Integer hospitalDepartmentId,
            String visitTime,
            Double price,
            String describe,
            Integer serviceTypeId,
            Integer visitorId,
            Integer areaId,
            Double duration
    );

    RequestDTO getRequestById(Integer id);
}
